/**
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved. 
 */
package org.xlab.baseframework.domain.view;

import java.text.SimpleDateFormat;

import org.xlab.baseframework.domain.SystemParameter;
import org.xlab.baseframework.domain.enumerate.EnumParameterType;
import org.xlab.baseframework.system.Declare;

/**
 * <p>
 * 系统参数实体的只读实体
 * </p>
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 8, 2010
 * @since 1.0.0
 * 
 */
public class SystemParameterVO extends
		AbstractNormalVersionControlViewObject<SystemParameter> {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 7685295903051312181L;

	public static final String FIELD_ID = "id";
	public static final String FIELD_TYPE = "type";
	public static final String FIELD_CODE = "code";
	public static final String FIELD_DESCRIPTION = "description";
	public static final String FIELD_REMARK = "remark";
	public static final String FIELD_VALUE = "value";
	public static final String FIELD_CREATED_BY_NAME = "createdByName";
	public static final String FIELD_LASTUPDATED_BY_NAME = "lastUpdatedByName";

	private Long id;
	private EnumParameterType type;
	private String code;
	private String description;
	private String remark;
	private String value;
	private String createdByName;
	private String lastUpdatedByName;

	private String s_createdTime;
	private String s_lastUpdatedTime;

	/**
	 * <p>
	 * 空构造函数
	 * </p>
	 */
	public SystemParameterVO() {
		super();
	}

	/**
	 * <p>
	 * 默认构造函数
	 * </p>
	 * 
	 * @param pojo
	 *            普通实体对象
	 */
	public SystemParameterVO(SystemParameter pojo) {
		super(pojo);
		SimpleDateFormat sdf = new SimpleDateFormat(
				Declare.SYSTEM_LONG_DATE_FORMAT + Declare.SPACE
						+ Declare.SYSTEM_LONG_TIME_FORMAT);
		this.s_createdTime = sdf.format(pojo.getCreatedTime());
		this.s_lastUpdatedTime = sdf.format(pojo.getLastUpdatedTime());
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * @return the s_createdTime
	 */
	public String getS_createdTime() {
		return s_createdTime;
	}

	/**
	 * @return the s_lastUpdatedTime
	 */
	public String getS_lastUpdatedTime() {
		return s_lastUpdatedTime;
	}

	/**
	 * @return the type
	 */
	public EnumParameterType getType() {
		return type;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @return the createdByName
	 */
	public String getCreatedByName() {
		return createdByName;
	}

	/**
	 * @return the lastUpdatedByName
	 */
	public String getLastUpdatedByName() {
		return lastUpdatedByName;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(EnumParameterType type) {
		this.type = type;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * @param createdByName the createdByName to set
	 */
	public void setCreatedByName(String createdByName) {
		this.createdByName = createdByName;
	}

	/**
	 * @param lastUpdatedByName the lastUpdatedByName to set
	 */
	public void setLastUpdatedByName(String lastUpdatedByName) {
		this.lastUpdatedByName = lastUpdatedByName;
	}

	/**
	 * @param s_createdTime the s_createdTime to set
	 */
	public void setS_createdTime(String s_createdTime) {
		this.s_createdTime = s_createdTime;
	}

	/**
	 * @param s_lastUpdatedTime the s_lastUpdatedTime to set
	 */
	public void setS_lastUpdatedTime(String s_lastUpdatedTime) {
		this.s_lastUpdatedTime = s_lastUpdatedTime;
	}

}
